﻿<!DOCTYPE html>
<html>
<head>
    <title>top.html</title>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: 'frm.ashx?type=getUserInfo',
                type: 'post',
                data: '',
                dataType: 'json',
                success: function (r) {
                    $('#spanWBID').html(r[0].WBID);
                    $('#spanUser').html(r[0].strRealName);
                }, error: function (r) {

                }
            });

            UpdateUserOperate();
        });
        function BackUpDB() {
            $.ajax({
                url: 'frm.ashx?type=BackUpDB',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {
                    alert("备份数据库成功!");
                }, error: function (r) {
                    alert("备份数据库失败!");
                }
            });
        }

        //更新用户操作记录
        function UpdateUserOperate() {
            $.ajax({
                url: '/Ashx/user.ashx?type=UpdateUserOperate',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {

                }, error: function (r) {

                }
            });

            // setInterval(UpdateUserOperate, 60000);//每60s更新用户操作记录一次

        }
    </script>
    <style type="text/css">
        * {
            padding: auto;
            margin: auto;
        }

        .pagehead {
            padding: 0px 0px;
            width: 100%;
            height: 60px;
            background: #00bfff;
            box-shadow: inset 0 0 10px #2f4f4f;
        }




            .pagehead .logo {
                position: absolute;
                top: 0px;
                left: 0px;
                width: 60px;
                height: 60px;
            }

                .pagehead .logo img {
                    width: 60px;
                    height: 58px;
                }


            .pagehead .head-userinfo {
                position: absolute;
                top: 0px;
                left: 60px;
            }

                .pagehead .head-userinfo p {
                    margin-top: 7px;
                    margin-left: 10px;
                }

                    .pagehead .head-userinfo p span {
                        font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                        font-size: 14px;
                        color: #b5e7ff;
                    }

            .pagehead .pagetitle {
                position: absolute;
                top: 0px;
                left: 260px;
                width: 100%;
                margin-left: -260px;
            }

            .pagehead .head-wbinfo {
                text-align: center;
            }

                .pagehead .head-wbinfo p {
                    margin-top: 10px;
                    font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                    font-size: 28px;
                    color: gold;
                }



            .pagehead .head-setting {
                position: absolute;
                top: 0px;
                right: 0px;
                width: 150px;
                padding: 20px;
            }

                .pagehead .head-setting ul {
                }

                    .pagehead .head-setting ul li {
                        display: inline-block;
                        padding: 0px 0px;
                    }

                        .pagehead .head-setting ul li a {
                            text-decoration: none;
                            background: #b5e7ff;
                            color: #ff5500;
                            font-family: 'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;
                            font-size: 14px;
                            padding: 5px 10px;
                            border-radius: 5px;
                        }
    </style>

</head>
<body>
    <div class="pagehead">
        <div class="logo">
            <img src="../images/LOGO.png" alt="" />

        </div>
        <div class="head-userinfo">
            <p><span>网点:</span><span id="spanWBID"></span></p>
            <p><span>用户:</span><span id="spanUser"></span></p>
        </div>
        <div class="pagetitle">
            <div class="head-wbinfo">
                <p>山西共富•粮安天下粮食银行</p>
            </div>
            <div class="head-setting">
                <ul>
                    <li><a href="user_main.aspx" target="user_main">主页</a> </li>
                    <li><a href="../default.aspx?Type=loginOut" target="_parent">退出</a></li>
                </ul>
            </div>
        </div>
    
    </div>
</body>
</html>
